<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>lagou</title>
    <script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("button").click(function () {
                let params = {
                    "action":$(this).attr("action"),
                    "name":$(this).text(),
                    "user_id":1,
                    "act_time":"",
                    "job_code":"2"
                };
                $.post("http://localhost/lagou", params, function (data) {
                    console.log(data);
                });
            });
        });
    </script>
</head>
<body>

<button action="login">登陆</button>
<button action="click">点击</button>
<button action="job_collect">收藏</button>
<button action="cv_send">投简历</button>
<button action="cv_upload">上传简历</button>

</body>
</html>